import http from "../utils/http.js"

export const login = (code) => {
  return http.get('/login/getUserInfo', {code})
}

export const wxLogin = () => {
  return http.get('/login/wxLogin')
}

export const getAuthenticationCode = (params) => {
  return http.post('/common/sms', params)
}

export const mobilePhoneLogin = (params) => {
  return http.post('/login/verificationCode', params)
}

export const resetPassword = (params) => {
  return http.post('/login/resetPassword', params)
}

export const passwordLogin = (phone, password) => {
  return http.get(`/login/passwordLogin/${phone}/${password}`)
}


export const register = (params) => {
  return http.post('/login/register', params)
}
